const config = require('../config/index.js')

const Sequelize = require('sequelize');

const sequelize = new Sequelize(config.db.DATABASE, config.db.USERNAME, config.db.PASSWORD, {
    host: config.db.HOST,
    port: config.db.PORT,
    dialect: 'mysql',
    pool: {},
    define: {
        'underscored': true,
        'charset':'utf8mb4'
    }
})


module.exports = sequelize
